<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Robots" content="all">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,minimal-ui">

<meta name="screen-orientation" content="portrait">
<!--<meta name="full-screen" content="yes" />
<meta name="browsermode" content="application">

<meta name="x5-fullscreen" content="true">
<meta name="x5-orientation" content="portrait">-->
<!-- <meta name="x5-page-mode" content="app">-->
<!-- 强制让文档的宽度与设备的宽度保持1:1，并且文档最大的宽度比例是1.0，且不允许用户点击屏幕放大浏览-->
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- 告诉设备忽略将页面中的数字识别为电话号码 -->
<meta http-equiv="cleartype" content="on">
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta name="Keywords" content="<?php echo ($seo_keyword); ?>">
<meta name="Description" content="<?php echo ($seo_description); ?>">
<meta name="wap-font-scale" content="no">
<title>金期权</title>

<link href="/git/www/yxwei/Public/Futures/css/main.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/index.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/personal.css" rel="stylesheet">
<link href="/git/www/yxwei/Public/Futures/css/left.css" rel="stylesheet">
<script type="text/javascript" src="/git/www/yxwei/Public/Futures/js/jquery.js"></script>
<script type="text/javascript" src="/git/www/yxwei/Public/Futures/js/highcharts.js"></script>
<link href="/git/www/yxwei/Public/Futures/css/Swiper.min.css" rel="stylesheet">
<script type="text/javascript" src="/git/www/yxwei/Public/Futures/js/swiper.min.js"></script>
<?php echo hook('weixinshare',array('title'=>'金期权交易平台~','link'=>"$share_url",'desc'=>'我在金期权交易平台盈利，快来一起参与吧！','imgUrl'=>"$headimgurl",'type'=>'','dataUrl'=>'','success_fun'=>'callback'));?>
<script type="text/javascript">
    function callback(){
        //alert('分享回调');
         /*
         $.post("<?php echo U('Index/share');?>",{},function(data){
             if(data.status==0){
                //alert(data.mes);
             }else{
                //alert('分享成功');
             }
         },'json')
         */
    }
</script>
<!-- 页面header钩子，一般用于加载插件CSS文件和代码 -->


</head>
<body>
	<!-- 头部 -->
	<!---->
	<!-- /头部 -->
	
	<!-- 主体 -->
	
<script>
function changeImg(){
   document.getElementById("img1").src = "<?php echo U('User/verify','','');?>/id/"+new Date();
}
</script>
</script>
<!--<div class="bank-indextop">
	提现
</div>-->
<div class="container">
<div class="nav">
    <img src="/git/www/yxwei/Public/Futures/images/img_1.png" alt="" id="show">          
    <h3>余额提现</h3>
</div>
<div class="bank-bindbox">
<div class="bank-bindtop">
	<img src="/git/www/yxwei/Public/Futures/images/icon11.png" class="bank-binding" /> &nbsp;提现
</div>
<ul class="bank-indexul">
	<li>
		<div class="bank-indexleft">姓名</div>
		<div class="bank-indexright" style="color: #cc2a1e;"><?php echo ($list["bank_realname"]); ?></div>
	</li>
	<li>
		<div class="bank-indexleft">银行账户</div>
		<input type="hidden" id="bank_id" name="bank_id" value="<?php echo ($list["id"]); ?>" />
		<div class="bank-indexright" style="color: #cc2a1e;"><?php echo ($list["bank_name"]); ?>(<?php echo ($list["bank_card"]); ?>)</div>
	</li>
	<li>
		<div class="bank-indexleft">账户余额</div>
		<div class="bank-indexright"><span id="balance_money"><?php echo ($money); ?></span>元</div>
	</li>
	<!--<li>
		<div class="bank-indexleft">赠金</div>
		<div class="bank-indexright">0元</div>
	</li>
	<li>
		<div class="bank-indexleft">可提金额</div>
		<div class="bank-indexright">0元</div>
	</li>-->
	<li>
		<div class="bank-indexleft">提现金额</div>
		<div class="bank-indexright"><input type="text" name="drawing_money" id="drawing_money" value="" placeholder="每笔出金最小100，最大5000" class="bank-indexinput"/></div>
	</li>
	<li>
		<div class="bank-indexleft">交易密码</div>
		<div class="bank-indexright"><input type="password" name="password" id="password" value="" class="bank-indexinput" placeholder="请输入交易密码"/></div>
	</li>
	<!-- <li>
		<div class="bank-indexleft">验证码</div>
		
		<div class="bank-indexright"><input type="text" id="code" name="code" value="" class="bank-indexyanz"/>
		<img class="bank-indexyani" id="img1" onclick="changeImg()"  alt="验证码" src="<?php echo U('User/verify');?>" title="点击刷新" /></div>
	</li> -->
	
	<!--<a class="bank-indexok" href="#">确认</a>
	<a class="bank-indexno" id="unbinding">解绑</a>-->
</ul>
<div style = "color:red;margin-top:10px;margin-bottom:20px;">( 注：手续费按提现金额的1%收取，单笔手续费最少2元)</div>
<p class="bank-bindtips clearfix">
		<a class="bank-bindok bank-bindti"  href="javascript:subform()">确认</a>
		<a class="bank-bindno bank-bindti" id="unbinding">解绑</a>
</p>
</div>
<div class="bank-indexUnbundling"></div>
<div class="bank-indexUnbundling2">
	<p class="bank-indexUn">确认解绑</p>
	<p class="bank-indexUn" style="color: #7e7d7d;font-weight: normal;font-size: 12px;">解绑定需要管理员确认，请在微信界面与客服联系。</p>
	<p class="bank-indexUn2">
		<a id="unbindingtwo" style="color: #ce3427;">取消</a>
		<!-- <a>确定</a> -->
	</p>
</div>
</div>
<script type="text/javascript">
$('#unbinding').click(function(){
	$('.bank-indexUnbundling').toggle();
	$('.bank-indexUnbundling2').toggle();
})
$('.bank-indexUnbundling').click(function(){
	$('.bank-indexUnbundling').toggle();
	$('.bank-indexUnbundling2').toggle();
})
$('#unbindingtwo').click(function(){
	$('.bank-indexUnbundling').toggle();
	$('.bank-indexUnbundling2').toggle();
})
function subform(){
	var bank_id=$('#bank_id').val();		//银行账户
	var balance_money=$('#balance_money').html();		//账户余额
	var drawing_money=$('#drawing_money').val();		//提现金额
	var password=$('#password').val();		//交易密码
	var code=$('#code').val();				//验证码
	var reg=/^\d+(\.\d+)?$/g;
   if(drawing_money.trim()=='' || 1*drawing_money<100 || 1*drawing_money>5000 || !reg.test(drawing_money)){
      alert('提现金额不正确');
      return false;
   }
   if(password==""){
       alert('请输入正确的提款密码');
       return false;
   }
   $.post("<?php echo U('User/draw_money');?>",
   		{
   			bank_id:bank_id,
   			balance_money:balance_money,
   			drawing_money:drawing_money,
   			password:password,code:code
   		},function(data){
   			alert(data.msg);
   			if(data.status){
   				setTimeout(link_url,1000);
   			}	
  },"json")
}
function link_url(){
	var url_href="<?php echo U('Payments/payments');?>";
	window.location.href=url_href;
}
</script>

	<!-- /主体 -->

	<!-- Left -->
	
	
<div class="left-layer"></div>

<div class="left-box">
	<div class="left-positi">
	<div class="left-img left-border">
		<!--
		<img src="/git/www/yxwei/Public/Futures/images/saber.png"/>
		-->
		<img src="<?php echo ($headimgurl); ?>">
	</div>
	<ul>
		<li class="left-list left-border"><a href="<?php echo U('Index/index');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon01.png" /><span class="left-span">首页</span></a></li>
		<li class="left-list left-border"><a href="<?php echo U('StockOption/index');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon23.png" /><span class="left-span">恒指期权</span></a></li>
		<li class="left-list left-border"><a href="<?php echo U('Pay/personal_incharge');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon02.png" /><span class="left-span">充值</span></a></li>
		<li class="left-list left-border"><a href="<?php echo U('User/bank_index');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon03.png" /><span class="left-span">提现</span></a></li>
		<li class="left-list left-border"><a href="<?php echo U('Transaction/index');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon04.png" /><span class="left-span">交易历史</span></a></li>
		<li class="left-list left-border"><a href="<?php echo U('Order/order_list');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon04.png" /><span class="left-span">订单列表</span></a></li>
		<!-- <li class="left-list left-border"><a href="#"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon04.png" /><span class="left-span">排行榜</span></a></li> -->
		<li class="left-list left-border"><a href="<?php echo U('Payments/payments');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon05.png" /><span class="left-span">收支明细</span></a></li>
		<li class="left-list left-border"><a href="<?php echo U('User/user_info');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon06.png" /><span class="left-span">个人信息</span></a></li>
		<?php if($is_agent == 1): ?><li class="left-list left-border"><a href="<?php echo U('Commission/index');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon22.png" /><span class="left-span">分销中心</span></a></li><?php endif; ?>
		<?php if($is_agent == 0): ?><li class="left-list left-border"><a href="<?php echo U('Apply/index');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon22.png" /><span class="left-span">分销中心</span></a></li><?php endif; ?>
       <!--  <li class="left-list left-border"><a href="<?php echo U('Commission/index');?>"><img class="left-icon" src="/git/www/yxwei/Public/Futures/images/icon22.png" /><span class="left-span">分销中心</span></a></li> -->
	</ul>
	</div>
</div>
<!--没注册提示框-->
<div class="left-tips">
	<p class="left-tipsp1">注册</p>
	<p class="left-tipsp2">您还没有注册,请先注册!</p>
	<div class="left-tipsdiv">
		<a class="left-tipsa1" href="#">取消</a>
		<a class="left-tipsa2" href="#">确定</a>
	</div>
</div>

<!--未登录提示-->
<!-- <div class="container" style="display: <?php echo ($hasPwd); ?>;">
	<div class="dailog_mask" style="display: block;"></div>
	<div class="index-mask" style="display: block;">

		<div class="no_loginbox">
			<p class="nologin_title">交易密码</p>
			<p class="nologin_pwd"></p>
			<input type="password" name="futures_pwd" id="futures_pwd" value="" placeholder="密码" class="pwd_input"/>
		</div>
		<div class="nologin_sub clearfix">
			<a href="<?php echo U('User/find_pwd');?>" class="sub_findpwd">找回密码</a>
			<a href="javascript:void(0);" class="sub_login" onclick="pwd_login();">确认</a>		
		</div>
		
</div> -->

<script type="text/javascript">
$("a").attr('data-ajax',false);
$('.flip-go').css('float','left')

$('#show').click(function(){
		$('.left-layer').toggle();
		$('.left-box').toggle();
//		move('left-box');
})
$('.left-layer').click(function(e){	
	e.stopPropagation;
	$('.left-layer').toggle();
	$('.left-box').toggle();
})

/**
 * [input_pwd 交易密码登录]
 * @return {[type]} [description]
 */
function pwd_login(){
	//获取输入的交易
	var pwd = $('#futures_pwd').val();
	if(pwd==''){
		$(".nologin_pwd").html('请输入交易密码！');
		return;
	}
	var url="<?php echo U('User/pwd_login');?>";
    $.post(url,{pwd:pwd},function(data){
        if(data.status){
        	$(".nologin_pwd").html('成功！');
           	window.location.href="<?php echo U('Index/index');?>";
        }else{       
            $(".nologin_pwd").html(data.info);
        }
    },'json')        
}
</script>

	
	<!-- /Left -->

	<!-- 底部 -->
	<!---->
	<!-- /底部 -->
</body>
</html>